package cc.web.vaaking.common.utils;


import javax.servlet.http.HttpServletRequest;

public class ValueUtils {
    /**
     * 获取 request的 attr 值
     * @param request
     * @param s 值名称
     * @param defaultStr 替代值
     * @param defaultStr 替代值
     * @return
     */
    public static String getParamOrDefault(HttpServletRequest request, String s, String defaultStr){
        String val = request.getParameter(s);
        return val==null?defaultStr:val;
    }
}

